from django.contrib import admin

from .models import ServerApplication, Approval


class ApprovalInline(admin.StackedInline):
    model = Approval
    extra = 0


class ServerApplicationAdmin(admin.ModelAdmin):
    inlines = [ApprovalInline]


admin.site.register(ServerApplication, ServerApplicationAdmin)
